/**
 * Copyright(c) 2013 Jade Techonologies Co., Ltd.
 *
 * History:
 *   13-5-7 上午11:12 Created by sky
 */
package com.jade.bss.base.provision.customer;

import com.jade.bss.base.BssException;

/**
 * 删除客户信息。
 *
 * @author sky
 * @version 1.0 13-5-7 上午11:12
 */
public class RemoveCustomerValve
        extends AbstractCustomerValve
{
    @Override
    protected void doHandle(CustomerContext context)
            throws BssException
    {
        long customerId = context.getCustomerId();
        if (context.getCustomer() != null) {
            customerId = context.getCustomerId();
        }
        customerManager.removeCustomer(customerId);
        mappingManager.removeMappings(customerId);
    }
}
